/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoo.psdk;

import java.io.ByteArrayOutputStream;
import java.util.zip.Deflater;

public class g {
    public static byte[] a(byte[] paramArrayOfByte) {
        Deflater localDeflater = new Deflater();
        localDeflater.setLevel(9);
        localDeflater.setInput(paramArrayOfByte);
        ByteArrayOutputStream localByteArrayOutputStream = new ByteArrayOutputStream(paramArrayOfByte.length);
        localDeflater.finish();
        byte[] arrayOfByte1 = new byte[2048];
        while (!(localDeflater.finished())) {
            int i = localDeflater.deflate(arrayOfByte1);
            localByteArrayOutputStream.write(arrayOfByte1, 0, i);
        }
        byte[] arrayOfByte2 = localByteArrayOutputStream.toByteArray();
        arrayOfByte2[0] = (byte) (arrayOfByte2[0] ^ 0x24);
        arrayOfByte2[(arrayOfByte2.length / 2)] = (byte) (arrayOfByte2[(arrayOfByte2.length / 2)] ^ 0x11);
        localByteArrayOutputStream.close();
        return arrayOfByte2;
    }
}